package com.lai.shop.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.lai.shop.utils.PageUtils;
import com.lai.shop.entity.UserEntity;
import com.lai.shop.vo.UserLoginVo;
import com.lai.shop.vo.UserRegisterVo;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 用户表
 *
 * @author laiciqi
 * @email 602469238@qq.com
 * @date 2022-05-19 13:16:53
 */
public interface UserService extends IService<UserEntity> {

    /**
     * 分页查询
     *
     * @param params
     * @return
     */
    PageUtils queryPage(Map<String, Object> params);

    /**
     * 管理员保存用户
     *
     * @param user
     */
    void adminSaveUser(UserEntity user);

    /**
     * 用户注册
     *
     * @param userRegisterVo
     * @return
     */
    boolean register(UserRegisterVo userRegisterVo);

    /**
     * 用户登录
     *
     * @param userLoginVo
     * @return
     */
    UserEntity login(UserLoginVo userLoginVo);


}

